xm: Some fixes for pvSCSI
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 19 Feb 2009 11:01:15 +0000 (11:01 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 19 Feb 2009 11:01:15 +0000 (11:01 +0000)
commitb35b1efb72745a3217cbb1049c06ed4e5e08ce54
tree62cd1133bc5dfd2088ca623dd63e88c5b224e0b6
parent34970a2aece242b7fc52db064d860ce1b2ac8ebe
xm: Some fixes for pvSCSI

For xm create and xm new, an error may not occur even if wrong
vscsi configuration is given.

e.g.
  vscsi = [ '0:0:0:0,0:0:0:0', '0:0:0:0,1:0:0:0' ]

  # xm create vm1
  Using config file "/etc/xen/vm1".
  Started domain vm1 (id=8)
  # xm scsi-list vm1
  Idx BE  state host  phy-hctl   phy   vir-hctl   devstate
  0   0   1     0     0:0:0:0    sda   0:0:0:0    None
  1   0   1     0     0:0:0:0    sda   1:0:0:0    None

This patch fixes some problems such as the above.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xm/create.py